Problem Note 69155: A query returns no rows for a newly created SAP IQ table
After you create and insert data into an SAP IQ table using SAS/ACCESS® Interface to SAP IQ, no rows are returned on the following query if it is in the same call to the SQL procedure as shown here:
libname db sybaseiq user=sap_user password=password server=server_name host=host_name db=database port=9012 AUTOCOMMIT=yes;
proc sql DQUOTE=ANSI;
drop table db.customer;
create table db.customer(id int,name varchar(20),address varchar(30),tel int);
insert into db.customer values(1,'aaa','bb',123456);
insert into db.customer values(2,'cc ','dd',123456);
select * from db.customer;
quit;
NOTE: Table DB."customer" created, with 0 rows and 4 columns.
10?
NOTE: No rows were selected.
When you update data in an SAP IQ table, you must specify the ClientAutocommit option as part of the CONOPTS= string. By specifying this option, you are also able to update data in a table and can then query that table immediately after the update within the same call to PROC SQL.
Here is an example that shows how to specify the ClientAutocommit option:
libname db sapiq host=myserver server=myserver db=mydb uid="myuserid" pwd="mypassword" port=9011 autocommit=yes conopts="ClientAutocommit=yes";
Operating System and Release Information
SAS System | SAS/ACCESS Interface to SAP IQ | Microsoft® Windows® for x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise 32-bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Pro 32-bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8 Pro x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro 32-bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 10 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows 11 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2008 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2008 R2 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2008 for x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 Datacenter | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Datacenter | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Std | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2012 Std | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2016 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2019 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Microsoft Windows Server 2022 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Enterprise 32 bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Enterprise x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Home Premium 32 bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Home Premium x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Professional 32 bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Professional x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Ultimate 32 bit | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Windows 7 Ultimate x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
64-bit Enabled AIX | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
64-bit Enabled Solaris | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
HP-UX IPF | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Linux for x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
Solaris for x64 | 9.44 | 9.44 | 9.4 TS1M7 | 9.4 TS1M8 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2022-05-04 13:31:23 |
Date Created: | 2022-05-03 09:59:48 |